
<template>
  <view class="notification-detail-page">
    <!-- 通知详情卡片 -->
    <view class="detail-card">
      <!-- 通知标题 -->
      <view class="title-section">
        <text class="notification-title">{{ notificationDetail.title }}</text>
      </view>

      <!-- 通知元信息 -->
      <view class="meta-section">
        <view class="meta-item">
          <uni-icons type="person" size="16" color="#999"></uni-icons>
          <text class="meta-text">{{ notificationDetail.sender }}</text>
        </view>
        <view class="meta-item">
          <uni-icons type="calendar" size="16" color="#999"></uni-icons>
          <text class="meta-text">{{ notificationDetail.date }}</text>
        </view>
      </view>

      <!-- 通知内容 -->
      <view class="content-section">
        <text class="notification-content">{{ notificationDetail.content }}</text>
      </view>
    </view>
  </view>
</template>

<script>export default {
  data() {
    return {
      notificationDetail: {
        title: '工地进度更新提醒',
        date: '2024-01-15 14:30',
        sender: '项目经理李经理',
        content: '尊敬的业主您好，您位于上海市浦东新区xxx花园2期5栋102的装修工地，今日已完成水电改造工程的80%，预计明日可完成全部水电工程。请知悉。\n\n如有任何疑问，请及时与我们联系。\n\n感谢您的支持与配合！'
      }
    }
  }
}
</script>

<style lang="scss" scoped>.notification-detail-page {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding: 20rpx;
}

.header-section {
  margin-bottom: 30rpx;
}

.page-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  position: relative;
  padding-left: 20rpx;
}

.page-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8rpx;
  height: 36rpx;
  background: linear-gradient(to bottom, #e4393c, #409EFF);
  border-radius: 4rpx;
}

.detail-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
}

.title-section {
  padding-bottom: 30rpx;
  border-bottom: 1rpx solid #f0f0f0;
  margin-bottom: 30rpx;
}

.notification-title {
  font-size: 30rpx;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.meta-section {
  margin-bottom: 30rpx;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 16rpx;

  &:last-child {
    margin-bottom: 0;
  }
}

.meta-text {
  font-size: 24rpx;
  color: #666;
  margin-left: 16rpx;
}

.content-section {
  padding-top: 30rpx;
  border-top: 1rpx solid #f0f0f0;
}

.notification-content {
  font-size: 24rpx;
  color: #333;
  line-height: 1.6;
  white-space: pre-line;
}
</style>